<?php

	class LogView
	{
		// Print all the errors from the Log.	
		public function ShowMessages()
		{
			$temp = Array();
			$temp = Log::GetErrorArray();
			
			foreach($temp as $message)
			{
				echo $message . "<br />";	
			}
		}
		
		public function ShowErrors()
		{
			echo "<p>ErrorLog</p>";
			
			$temp = Array();
			
			$temp = Log::GetErrorsFromFile();
			
			foreach($temp as $error)
			{
				echo '<font color = "red">' . $error . '</font>' . "<br />";
			}
		}			
	}		